package com.mou.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

// 请求参数
@Data
public class MessageQueryDTO {
    @NotNull
    private Integer senderId;
    
    @NotNull
    private Integer receiverId;
    
    @Min(1)
    @Max(100)
    private Integer limit = 20;
}
